#!/bin/zsh

if [ $2 ]
then
    rosbag record -O lidar_$1 /usb_cam1/image_raw /usb_cam2/image_raw /wit/imu /wit/imu_r /livox/lidar /encoder_data
else
    rosbag record -O no_lidar_$1 /usb_cam1/image_raw /usb_cam2/image_raw /wit/imu /wit/imu_r /encoder_data
fi